package yunquan.wang.core.dao.springdata;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import javax.persistence.EntityManager;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;
/**
 * 此类扩展了Spring 需要为公共添加的方法可以自己添上
 * @author Administrator
 *
 * @param <T>
 */
@NoRepositoryBean
public interface BaseRepository<T,ID extends Serializable> extends JpaRepository<T, ID>,JpaSpecificationExecutor<T>{
	
	public EntityManager getEntityManager();

	public Class<T> getDomainClass();
	
	public List<T>  findList(Collection<String> columns);
	
}
